package org.hibernate.tuple.entity;

import java.util.Map;

import org.hibernate.mapping.Component;
import org.hibernate.tuple.DynamicMapInstantiator;
import org.hibernate.tuple.Instantiator;
import org.hibernate.tuple.component.DynamicMapComponentTuplizer;

import sm.util.SMMap;

public class SMComponentTuplizer extends DynamicMapComponentTuplizer {
	private static final long serialVersionUID = 9141075676880215321L;

	public SMComponentTuplizer(Component component) {
		super(component);
	}

	@Override
	protected Instantiator buildInstantiator(Component component) {
		return new DynamicMapInstantiator() {
			protected Map generateMap() {
				return new SMMap();
			}
		};
	}

}
